package com.ruoyi.system.domain.mongodb;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mongoplus.annotation.ID;
import com.mongoplus.enums.IdTypeEnum;

import lombok.Data;

import java.util.Date;

@Data
public class PointValue{


    @ID(type = IdTypeEnum.ASSIGN_ID)
    private String id;

    /**
     * 设备id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deviceId;


    private String pointName;


    private String deviceName;

    /**
     * 点位id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pointId;

    /**
     * 值
     */
    private String value;

    private String rawValue;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date originTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;




}
